const devtoolMap = {
  production: 'nosources-source-map',
  development: 'eval-source-map',
  debug: 'eval-source-map',
};
const devtool = devtoolMap[process.env.NODE_ENV];

module.exports = {
  publicPath: '/report-boot',
  // filenameHashing: false,
  configureWebpack: {
    devtool,
  },
  devServer: {
    port: 8082,
    proxy: {
      '/main': {
        target: 'http://localhost:8080/',
        ws: true,
        changeOrigin: true,
      },
    },
  },
};
